home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / the_independent.swf / scripts / DefineSprite_333_soundButton / frame_1 / DoAction.as
Encoding:
Text File  |  2011-08-19  |  371 b   |  17 lines

  1. soundIcon.gotoandstop(1);
  2. sndFlip = 1;
  3. soundBT.onRollOver = soundBT.onDragOver = function()
  4. {
  5.    soundIcon.gotoandstop(3);
  6. };
  7. soundBT.onRollOut = soundBT.onDragOut = function()
  8. {
  9.    soundIcon.gotoandstop(sndFlip);
  10. };
  11. soundBT.onRelease = function()
  12. {
  13.    sndFlip = sndFlip != 1 ? 1 : 2;
  14.    _parent.soundState(sndFlip);
  15.    soundIcon.gotoandstop(sndFlip);
  16. };
  17.